home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 016a / 4dtnt.zip / ALIASES.DOC < prev    next >
Text File  |  1991-11-03  |  4KB  |  109 lines

  1.     First, some internal aliases which are called by the others -- analogous
  2.     to subroutines in a program.  "Uv" = UltraVision mode setting commands.
  3.  
  4. RSET=uv %rc
  5. 25=uv 80X25
  6. 60=uv 80X63
  7. 132=uv 132X60
  8. 94=uv 94X63
  9. 108=uv 108X63
  10. 120=uv 120X63
  11.  
  12.     Save current text mode in "rc" as <cols>X<rows>, suitable for use by
  13.     RSET later and set the new mode.
  14.  
  15. RSAV=set rc=%[_columns]X%_rows^%&
  16.  
  17.     Tom Rawson gets the credit for this one.  It takes you to the directory
  18.     where your application is and returns afterward.  If your CDPATH is set
  19.     correctly (mine is) you don't ever need to specify a drive letter.  See
  20.     NOLTR.ZIP for details.
  21.  
  22. IN=pushd %1^%2&^popd
  23.  
  24.     Some abbreviations to save alias space elsewhere.
  25. TO=pushd
  26. FR=popd
  27. KS=keystack
  28.  
  29.     Here's a typical example of running an application without knowing what
  30.     drive letter.  "rsav 25" saves the current screen row/col setting and
  31.     does "25" (set 80X25, above).  "in tapcis tapcis q%&" remembers where
  32.     I am (pushd) and takes me to a directory named "tapcis" on whatever 
  33.     drive it's found and runs a program called "tapcis" with the "q"
  34.     command line switch and any others I typed ("%&").  "rset" restores
  35.     the screen mode saved at the beginning.  There are several more examples
  36.     in this file.
  37.  
  38. TAP=rsav 25^in tapcis tapcis q%&^rset
  39.  
  40.     A DIR alias which puts the most recently added/modified files first.  Good
  41.     for finding that new document (or download) whose name you haven't 
  42.     learned yet.
  43.  
  44. NEWF=dir /2apv /o:rt
  45.  
  46. TURBOC=rsav^iff "%1" eq "" then^*tc src\*.c^cdd -^else *tc src\%@name[%1].c^endiff^rset
  47.  
  48.     My usual DIR alias.
  49. DDIR=*dir /2apv /o:a
  50.  
  51.     Keyboard speed setting
  52. KB=fastatkb 00
  53.  
  54. VSCALL=rsav 25^in pccs terminal vs48%1^rset
  55.  
  56.     See DO.ZIP for what these do.
  57. HOMEMO=do homemo
  58. PACKASM=do packasm %&
  59. PACKBAS=do packbas %&
  60. PACKCOB=do packcob %&
  61. PACKPRO=do packpro %&
  62.  
  63. TC=rsav 25^in tc procomm^rset
  64. VSEDIT=do vsedit %&
  65. TRACON=in tracon2 macre tracon.key tracon.exe
  66. LETTER=do letter
  67. MAH=in games mahjongg -b%1
  68. MILLE=rsav 25^in games *mille^rset %rc
  69.  
  70.     The fancy bit here is working properly whether or not an ANSI driver is
  71.     loaded.  I was beta testing ANSI clones for a while and it came in handy.
  72. SOLI=toggle n >& nul^if %_ansi ne 0 type k:\solimap.key^ks "NNS1Ray" 13 "YYY" 0 0 "X"^in games solitare^if %_ansi ne 0 esc [p^toggle N >& nul
  73.  
  74.     This is more dangerous than convenient!  It takes out files and containing
  75.     directories and subdirectories in one swell foop.
  76. WIPEDIR=erase /q /s /x /y /z %1
  77.  
  78.     Just a synonym for another alias.  I couldn't decide which name I liked
  79.     better -- still can't.  I use both interchangably.
  80. CEDIT=turboc %&
  81.  
  82. BROWSE=rsav 94^list %& /7^rset
  83.  
  84.     This one pumps a keyboard emulator into my trackball before running 
  85.     Lotus 1-2-3.  Makes life easier.
  86.  
  87. 123R3=rsav 25^trakball 123^in lotus3 *123^rset^trakball dos
  88.  
  89.     This one turns off UltraVision's color settings so the game looks OK,
  90.     then puts them back on.
  91. THIEVES=rsav 25^uvcolors x3^in games *thieves^uvcolors x1^rset
  92.  
  93.     Old habits die hard!
  94. COMMAND=%comspec%
  95.  
  96.     Move entire directories faster than a speeding keyboard finger!
  97. MMOVE=move /D /U %&
  98.  
  99.     The following set was inspired by Michael Krause's SSET alias.
  100.     XSET is a common subroutine for SSET and ASET.  If you specify
  101.     an alias (ASET) or an environment variable (SSET) on the command
  102.     line, the effect is identical to ESET.  If you omit any arguments
  103.     a sorted list of your environment variables (or aliases) and their
  104.     values pops up in a window for you to select.
  105.  
  106. XSET=%1 | sort > %ramd%\tmp^set f=%@select[%ramd%\tmp,0,0,%_rows,%_columns,%2]^del %ramd%\tmp >&nul^if "%f" ne "" eset %@substr[%f,0,%@index[%f,=]]^unset f >&nul
  107. SSET=iff "%1" eq "" then ^ xset set Environment ^ else eset %& ^ endiff
  108. ASET=iff "%1" eq "" then ^ xset alias Aliases ^ else eset /a %&^endiff
  109.